// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // »Project« Talina Gaming System (TgS) (∂) // »File« TgS Common - Math API [Matrix] [Utility].h_inc // »Author« Andrew Aye (EMail: mailto:andrew.aye@gmail.com, Web: http://www.andrewaye.com) // »Version« 4.0 // ------------------------------------------------------------------------------------------------------------------------------ // // Copyright: © 2002-2010, Andrew Aye. All Rights Reserved. // This software is free for non-commercial use. Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // Redistributions of source code must retain this copyright notice, this list of conditions and the following disclaimers. // Redistributions in binary form must reproduce this copyright notice, this list of conditions and the following // disclaimers in the documentation and other materials provided with the distribution. // Neither the names of the copyright owner nor the names of its contributors may be used to endorse or promote products derived // from this software without specific prior written permission. // The intellectual property rights of the algorithms used reside with Andrew Aye. You may not use this software, in whole or // in part, in support of any commercial product without the express written consent of the author. // There is no warranty or other guarantee of fitness of this software for any purpose. It is provided solely "as is". // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Homegeneous 3x4 specific functions TgINLINE TgVOID M34(M_INIT_T_04)( M34(PCU_TgMAT), V4(C_TgVEC_M) ); TgINLINE TgVOID M34(M_SET_T_04)( M34(PCU_TgMAT), V4(C_TgVEC_M) ); // Mixed matrix concatenation TgVOID M44(M_CAT_34_44)( M44(PCU_TgMAT), M34(CPCU_TgMAT), M44(CPCU_TgMAT) ); TgVOID M44(M_CAT_44_34)( M44(PCU_TgMAT), M44(CPCU_TgMAT), M34(CPCU_TgMAT) ); // Transformation TgINLINE V4(TgVEC_M) V4(M_TX_P_34)( M34(CPCU_TgMAT), V4(C_TgVEC_M) ); TgINLINE V4(TgVEC_M) V4(M_TX_V_34)( M34(CPCU_TgMAT), V4(C_TgVEC_M) ); // Transpose TgINLINE TgVOID M34(M_TR)( M44(PCU_TgMAT), M34(CPCU_TgMAT) ); TgINLINE TgVOID M44(M_TR)( M44(PCU_TgMAT), M44(CPCU_TgMAT) );